package com.lmf.mock.starter.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Mock服务配置属性
 */
@ConfigurationProperties(prefix = "mock")
public class MockProperties {

    /**
     * 是否启用Mock服务
     */
    private boolean enabled = true;

    /**
     * Mock服务基础路径
     */
    private String basePath = "/mockI";

    /**
     * 管理页面路径
     */
    private String adminPath = "/mock/admin";

    /**
     * 是否启用管理页面
     */
    private boolean adminEnabled = true;

    /**
     * 默认响应延迟(毫秒)
     */
    private int defaultDelay = 0;

    /**
     * 默认状态码
     */
    private int defaultStatusCode = 200;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getBasePath() {
        return basePath;
    }

    public void setBasePath(String basePath) {
        this.basePath = basePath;
    }

    public String getAdminPath() {
        return adminPath;
    }

    public void setAdminPath(String adminPath) {
        this.adminPath = adminPath;
    }

    public boolean isAdminEnabled() {
        return adminEnabled;
    }

    public void setAdminEnabled(boolean adminEnabled) {
        this.adminEnabled = adminEnabled;
    }

    public int getDefaultDelay() {
        return defaultDelay;
    }

    public void setDefaultDelay(int defaultDelay) {
        this.defaultDelay = defaultDelay;
    }

    public int getDefaultStatusCode() {
        return defaultStatusCode;
    }

    public void setDefaultStatusCode(int defaultStatusCode) {
        this.defaultStatusCode = defaultStatusCode;
    }
}
